feat: fetch and update Google APIs list#13
Merged
Conversation
Replaces the manually maintained list of Google APIs with a script that fetches the latest data directly from the Google API Discovery Service. This ensures that the API and scope information is always up-to-date, reduces manual maintenance effort, and provides more comprehensive data for each API. - Adds a `fetch-apis` script to automate data retrieval. - Introduces `googleapis`, `ky`, and `tsx` as development dependencies. - Updates the internal data structure for APIs to align with the discovery service output. - Adjusts build and test configurations to support the new workflow.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR replaces the manually maintained Google APIs list with an automated script that fetches the latest data from the Google API Discovery Service, ensuring up-to-date API and scope information.
- Adds a
fetch-apisscript that automatically retrieves API data from the Google Discovery Service - Updates the internal data structure by renaming
documentationtodocumentationLink - Introduces GitHub Actions workflow for automated daily API updates
Reviewed Changes
Copilot reviewed 8 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/fetch-apis.ts | New script to fetch and process Google APIs data from Discovery Service |
| package.json | Adds development dependencies and fetch-apis script command |
| src/scopes.ts | Updates API data structure to use documentationLink property |
| src/test/scopes.test.ts | Replaces placeholder tests with actual scope functionality tests |
| tsup.config.mjs | Adds test files to build entry points |
| .vscode-test.mjs | Updates test file extension configuration |
| .github/workflows/update-apis.yml | Adds automated workflow for daily API updates |
| .changeset/odd-insects-tap.md | Documents the change for release notes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the manually maintained list of Google APIs with a script that fetches the latest data directly from the Google API Discovery Service.
This ensures that the API and scope information is always up-to-date, reduces manual maintenance effort, and provides more comprehensive data for each API.
fetch-apisscript to automate data retrieval.googleapis,ky, andtsxas development dependencies.